<header id="page-topbar">
    <div class="navbar-header">
        <div class="d-flex">
            <!-- LOGO -->
            <div class="navbar-brand-box">
                <a href="index.php" class="logo logo-dark">
                    <span class="logo-sm">
                        <img src="<?=$conf['logo']?>" alt="" height="22">
                    </span>
                    <span class="logo-lg">
                        <img src="<?=$conf['logo']?>" alt="" height="50">
                    </span>
                </a>

                <a href="index.php" class="logo logo-light">
                    <span class="logo-sm">
                        <img src="<?=$conf['logo']?>" alt="" height="22">
                    </span>
                    <span class="logo-lg">
                        <img src="<?=$conf['logo']?>" alt="" height="50">
                    </span>
                </a>
            </div>

            <button type="button" class="btn btn-sm mr-2 font-size-24 d-lg-none header-item waves-effect waves-light"
                data-toggle="collapse" data-target="#topnav-menu-content">
                <i class="mdi mdi-menu"></i>
            </button>

        </div>

        <div class="d-flex">

            <div class="dropdown d-none d-lg-inline-block">
                <button type="button" class="btn header-item noti-icon waves-effect" data-toggle="fullscreen">
                    <i class="mdi mdi-fullscreen"></i>
                </button>
            </div>

            <!-- 弹窗通知 -->
            <div id="header">
                <div v-if="noticeTxt !== ''" class="dropdown d-inline-block">
                    <button type="button" class="btn header-item noti-icon waves-effect" @click="notice">
                        <i class="mdi mdi-bell-outline"></i>
                        <span class="badge badge-danger badge-pill">1</span>
                    </button>
                </div>

                <div class="dropdown d-inline-block">
                    <button v-if="isSun" @click="changeTheme(1)" type="button" class="btn header-item noti-icon waves-effect">
                        <i class="ion ion-md-moon"></i>
                        <input type="checkbox" class="custom-control-input theme-choice" id="dark-mode-switch"
                            data-bsStyle="assets/css/bootstrap-dark.min.css" data-appStyle="assets/css/app-dark.min.css" />
                    </button>
                    <button v-else type="button" @click="changeTheme(2)" class="btn header-item noti-icon waves-effect">
                        <i class="ion ion-md-sunny"></i>
                        <input type="checkbox" class="custom-control-input theme-choice" id="light-mode-switch" checked />
                    </button>
                </div>
            </div>

            <div class="dropdown d-inline-block">
                <button type="button" class="btn header-item waves-effect" id="page-header-user-dropdown"
                    data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    <img class="rounded-circle header-profile-user"
                        src="http://q2.qlogo.cn/headimg_dl?dst_uin=<?=$userrow['user'];?>&spec=100" alt="Header Avatar">
                </button>
                <div class="dropdown-menu dropdown-menu-right">
                    <!-- item-->
                    <a class="dropdown-item" id="sjqy"><i
                            class="mdi mdi-account-circle font-size-17 align-middle mr-1"></i> 上级迁移</a>
                    <a class="dropdown-item d-block" href="passwd.php"><i
                            class="mdi mdi-settings font-size-17 align-middle mr-1"></i> 修改密码</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item text-danger" id="out"><i
                            class="bx bx-power-off font-size-17 align-middle mr-1 text-danger"></i> 退出登录</a>
                </div>
                
            </div>

        </div>
    </div>
</header>